﻿@{
    ViewBag.Title = "红包设置";
    Layout = "~/Views/Shared/_LayoutDualColumns.cshtml";
}
@model Ducu.SRV.ViewModel.Redbag.PlanModel
@section PageHeader{
    <span class="glyphicon glyphicon-edit" aria-hidden="true"></span><span class="after-glyphicon">@ViewBag.Title</span>
}
<style>
    .sub-title {
        margin: 30px 0 15px 0;
        font-size: 16px;
        /*font-weight: bold;*/
    }
</style>

@using (Html.BeginForm())
{
    <div class="sub-title text-primary">
        你现在共有红包<span>@Model.Available</span>份。
    </div>
    <label>为该目标分配红包：</label>
    <div class="input-group">
        @Html.TextBoxFor(m => m.Sum, new { @class = "form-control", placeholder = "" })
        <span class="input-group-addon">份</span>
    </div>
    @Html.ValidationMessageFor(m => m.Sum)
    <div class="sub-title text-primary">如果未能按时提交作业，<br />每次随机掉落的红包数量：</div>
    <label>最多：</label>
    <div class="input-group">
        @Html.TextBoxFor(m => m.PenaltyMax, new { @class = "form-control", placeholder = "" })
        <span class="input-group-addon">份</span>
    </div>
    @Html.ValidationMessageFor(m => m.PenaltyMax)
    <label>最少：</label>
    <div class="input-group">
        @Html.TextBoxFor(m => m.PenaltyMin, new { @class = "form-control", placeholder = "" })
        <span class="input-group-addon">份</span>
    </div>
    @Html.ValidationMessageFor(m => m.PenaltyMin)
    <div class="sub-title text-primary">在督工验收你作业的时候，<br />给他一点惊喜？</div>
    <label>共设置感恩红包：</label>
    <div class="input-group">
        @Html.TextBoxFor(m => m.RewardSum, new { @class = "form-control", placeholder = "" })
        <span class="input-group-addon">份</span>
    </div>
    @Html.ValidationMessageFor(m => m.PenaltyMin)
    <label>红包掉落的间隔大致为：</label>
    <div class="input-group">
        @Html.TextBoxFor(m => m.RewardRatio, new { @class = "form-control", placeholder = "" })
        <span class="input-group-addon">天</span>
    </div>
    @Html.ValidationMessageFor(m => m.RewardRatio)
    <label>每次最多：</label>
    <div class="input-group">
        @Html.TextBoxFor(m => m.RewardMax, new { @class = "form-control", placeholder = "" })
        <span class="input-group-addon">份</span>
    </div>
    @Html.ValidationMessageFor(m => m.PenaltyMin)
    <label>最少：</label>
    <div class="input-group">
        @Html.TextBoxFor(m => m.RewardMin, new { @class = "form-control", placeholder = "" })
        <span class="input-group-addon">份</span>
    </div>
    @Html.ValidationMessageFor(m => m.PenaltyMin)
}

@section RightPanel{

}